package com.core.flowable.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * 流程监听
 */
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class SysListenerDto implements Serializable{
	/** 创建人员 */
	private Long createBy;
	/** 创建时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;
	/** 事件类型 */
    @Length(max =32 ,message = "长度不能超过32位")
	private String eventType;
	/** 表单主键 */
	private Long id;
	/** 名称 */
    @Length(max =128 ,message = "长度不能超过128位")
	private String name;
	/** 备注 */
    @Length(max =255 ,message = "长度不能超过255位")
	private String remark;
	/** 状态 */
	private Byte status;
	/** 监听类型 */
	private String type;
	/** 更新人员 */
	private Long updateBy;
	/** 更新时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date updateTime;
	/** 执行内容 */
    @Length(max =255 ,message = "长度不能超过255位")
	private String value;
	/** 值类型 */
	private String valueType;

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}
	
	public Long getCreateBy() {
		return this.createBy;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setEventType(String eventType) {
		this.eventType = eventType;
	}
	
	public String getEventType() {
		return this.eventType;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return this.name;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getRemark() {
		return this.remark;
	}
	public void setStatus(Byte status) {
		this.status = status;
	}
	
	public Byte getStatus() {
		return this.status;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public String getType() {
		return this.type;
	}
	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}
	
	public Long getUpdateBy() {
		return this.updateBy;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	public String getValue() {
		return this.value;
	}
	public void setValueType(String valueType) {
		this.valueType = valueType;
	}
	
	public String getValueType() {
		return this.valueType;
	}

	
    
    @Override
    public String toString() {
        return "SysListener{" +
		"createBy=" + createBy +
		",createTime='" + createTime + "'" + 
		",eventType='" + eventType + "'" + 
		",id='" + id + "'" + 
		",name='" + name + "'" + 
		",remark='" + remark + "'" + 
		",status='" + status + "'" + 
		",type='" + type + "'" + 
		",updateBy='" + updateBy + "'" + 
		",updateTime='" + updateTime + "'" + 
		",value='" + value + "'" + 
		",valueType='" + valueType + "'" + 
                '}';
    }
	
}